<div class="span6 offset5">
	<input type="text" name="name" value="<?php echo("Module Name");?>">
</div>
<div class="span12">
<ul id="myTab" class="nav nav-tabs">
    
	<?php foreach($plan_details as $key=>$plan_details_array) {?>
	<li <?php if($key == "0")echo(" class=\"active\""); ?> id="<?php echo("li_plan_" . $plan_details_array['plan_number']);?>">
		<a href="<?php echo("#plan_" . $plan_details_array['plan_number']);?>" id="<?php echo("anch_plan_" . $plan_details_array['plan_number']);?>" data-toggle="tab">
			<?php echo("Plan " . $plan_details_array['plan_number']);?>&nbsp;
			<i class="icon-remove-sign"></i>
		</a>
	</li>
    <?php }?>
	
	<li id="add_new_tab">
        <a href="" onclick="tab_add()" data-toggle="tab" style="cursor:pointer">
			+
		</a>
    </li>
	
</ul>

<div class="span12"><h2>PLAN</h2></div>
<div id="myTabContent" class="tab-content">
	
	<form id="tab_form_input">
	<?php foreach($plan_details as $key=>$plan_details_array) {?>
		<div class="<?php if($key == 0)echo("active");?>" id="<?php echo("plan_" . $plan_details_array['plan_number']);?>">

		<?php echo($plan_details_array['plan_name']);?>

<!--			
		<label>
			<h4>Plan Name :</h4>
			<input type="text" name="tab_plan_name[]" value="<?php echo($plan_details_array['plan_name']);?>">			
		</label>
		
		<label>
			<h4>Description :</h4>
			<textarea id="categorydesc<?php echo($key);?>" name="tab_plan_description[]"><?php echo($plan_details_array['plan_description']);?></textarea>
		</label>		
		
		<div class="row-fluid">
		
		<div class="span4">
			<label>
				<h4>Video :</h4>
				<input type="text" name="tab_plan_video[]" value="<?php echo($plan_details_array['plan_video_link']);?>">
			</label>
		</div>
		
		<div class="span4">
			<label>
				<h4>Duration :</h4>
				<input type="text" name="tab_plan_duration[]" value="<?php echo($plan_details_array['plan_duration']);?>">
			</label>
		</div>
		
		<div class="span4">
			<label>
				<h4>Price :</h4>
				<input type="text" name="tab_plan_price[]" value="<?php echo($plan_details_array['plan_price']);?>">
			</label>
		</div>
		
		</div>
			<label>
				<h4>Deliverables :</h4>
				<textarea id="categorydeliv<?php echo($key);?>" name="tab_plan_deliverables[]"><?php echo($plan_details_array['plan_deliverables']);?></textarea>
			</label> -->
	
</div>
<?php }?>
</form>
</div>
